package fr.labri.macchiato.framework.business.model.product;

/**
 * An unknown instance of a product. An article is only identified by its name,
 * and can be qualified as a generic product (e.g. pasta, bread, etc...)
 * 
 * @author Matthieu FOUCAULT
 * 
 */
public class Article extends AbstractProduct implements Product {

	Article() {
		super();
	}

	Article(String name) {
		this();
		setName(name);
	}

	@Override
	public boolean equals(Object obj) {
		if (obj instanceof Article)
			return ((Article) obj).getName().equals(this.getName());
		else
			return false;
	}

}
